package com.my.controller;


import com.my.model.Menu;
import com.my.service.MenuService;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author wxq
 * @since 2020-06-13
 */
@RestController
@RequestMapping("/my/menu")
public class MenuController {

    @Autowired
    private MenuService menuService;

    @ApiOperation(value = "查询菜单",notes = "全查询")
    @ApiImplicitParams({

    })
    @ApiResponses({
            @ApiResponse(message = "",code = 200,response = Menu.class)

    })
    @GetMapping("/getAll")
    public List<Menu> select(){
        return menuService.list(null);
    }

}

